<?php 

//echo __DIR__;
define('BASEDIR',__DIR__);

include BASEDIR.'/yang/Loader.php';
spl_autoload_register('\\yang\\Loader::autoload');

header("Content-type:text/html;charset=utf8");
//测试类加载是否成功
App\Controller\Home\Index::test();
//App\Controller\Home\One::ones();
//引入db类
$db=new Yang\Databases;
//链式操作
$res=$db->where('id=1')->order('id=desc')->limit(2);
var_dump($res);
 ?>
